<?php /* Smarty version 2.6.12, created on 2008-10-30 11:03:59
         compiled from modules/Customer_Reviews/vote.tpl */ ?>
<?php func_load_lang($this, "modules/Customer_Reviews/vote.tpl","lbl_customers_rating,lbl_customers_rating,lbl_customer_voting,lbl_select_rating,lbl_excellent,lbl_very_good,lbl_good,lbl_fair,lbl_poor,lbl_rate_it"); ?><tr>
	<td colspan="2"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/subheader.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_customers_rating'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
</tr>
<?php if ($this->_tpl_vars['vote_max_cows'] != ""): ?>
<tr>
	<td><br /><?php echo $this->_tpl_vars['lng']['lbl_customers_rating']; ?>
</td>
	<td><br />
<?php unset($this->_sections['full_cows']);
$this->_sections['full_cows']['name'] = 'full_cows';
$this->_sections['full_cows']['loop'] = is_array($_loop=$this->_tpl_vars['vote_max_cows']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['full_cows']['show'] = true;
$this->_sections['full_cows']['max'] = $this->_sections['full_cows']['loop'];
$this->_sections['full_cows']['step'] = 1;
$this->_sections['full_cows']['start'] = $this->_sections['full_cows']['step'] > 0 ? 0 : $this->_sections['full_cows']['loop']-1;
if ($this->_sections['full_cows']['show']) {
    $this->_sections['full_cows']['total'] = $this->_sections['full_cows']['loop'];
    if ($this->_sections['full_cows']['total'] == 0)
        $this->_sections['full_cows']['show'] = false;
} else
    $this->_sections['full_cows']['total'] = 0;
if ($this->_sections['full_cows']['show']):

            for ($this->_sections['full_cows']['index'] = $this->_sections['full_cows']['start'], $this->_sections['full_cows']['iteration'] = 1;
                 $this->_sections['full_cows']['iteration'] <= $this->_sections['full_cows']['total'];
                 $this->_sections['full_cows']['index'] += $this->_sections['full_cows']['step'], $this->_sections['full_cows']['iteration']++):
$this->_sections['full_cows']['rownum'] = $this->_sections['full_cows']['iteration'];
$this->_sections['full_cows']['index_prev'] = $this->_sections['full_cows']['index'] - $this->_sections['full_cows']['step'];
$this->_sections['full_cows']['index_next'] = $this->_sections['full_cows']['index'] + $this->_sections['full_cows']['step'];
$this->_sections['full_cows']['first']      = ($this->_sections['full_cows']['iteration'] == 1);
$this->_sections['full_cows']['last']       = ($this->_sections['full_cows']['iteration'] == $this->_sections['full_cows']['total']);
?>
<img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/star_4.gif" class="StarImg" alt="" />
<?php endfor; endif;  if ($this->_tpl_vars['vote_little_cow'] != '0'): ?>
<img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/star_<?php echo $this->_tpl_vars['vote_little_cow']; ?>
.gif" class="StarImg" alt="" />&nbsp;
<?php endif;  unset($this->_sections['free_cows']);
$this->_sections['free_cows']['name'] = 'free_cows';
$this->_sections['free_cows']['loop'] = is_array($_loop=$this->_tpl_vars['vote_free_cows']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['free_cows']['show'] = true;
$this->_sections['free_cows']['max'] = $this->_sections['free_cows']['loop'];
$this->_sections['free_cows']['step'] = 1;
$this->_sections['free_cows']['start'] = $this->_sections['free_cows']['step'] > 0 ? 0 : $this->_sections['free_cows']['loop']-1;
if ($this->_sections['free_cows']['show']) {
    $this->_sections['free_cows']['total'] = $this->_sections['free_cows']['loop'];
    if ($this->_sections['free_cows']['total'] == 0)
        $this->_sections['free_cows']['show'] = false;
} else
    $this->_sections['free_cows']['total'] = 0;
if ($this->_sections['free_cows']['show']):

            for ($this->_sections['free_cows']['index'] = $this->_sections['free_cows']['start'], $this->_sections['free_cows']['iteration'] = 1;
                 $this->_sections['free_cows']['iteration'] <= $this->_sections['free_cows']['total'];
                 $this->_sections['free_cows']['index'] += $this->_sections['free_cows']['step'], $this->_sections['free_cows']['iteration']++):
$this->_sections['free_cows']['rownum'] = $this->_sections['free_cows']['iteration'];
$this->_sections['free_cows']['index_prev'] = $this->_sections['free_cows']['index'] - $this->_sections['free_cows']['step'];
$this->_sections['free_cows']['index_next'] = $this->_sections['free_cows']['index'] + $this->_sections['free_cows']['step'];
$this->_sections['free_cows']['first']      = ($this->_sections['free_cows']['iteration'] == 1);
$this->_sections['free_cows']['last']       = ($this->_sections['free_cows']['iteration'] == $this->_sections['free_cows']['total']);
?>
<img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/star_0.gif" class="StarImg" alt="" />
<?php endfor; endif; ?>
	</td>
</tr>
<?php endif; ?>
<tr>
	<td><br /><?php echo $this->_tpl_vars['lng']['lbl_customer_voting']; ?>
</td>
	<td>

<form method="get" action="product.php" name="voteform">
<input type="hidden" name="mode" value="vote" />
<input type="hidden" name="productid" value="<?php echo $this->_tpl_vars['product']['productid']; ?>
" />
<br />
<table cellspacing="1" cellpadding="2">
<tr>
	<td>
	<select name="vote">
		<option value="" selected="selected"><?php echo $this->_tpl_vars['lng']['lbl_select_rating']; ?>
</option>
		<option value="5"><?php echo $this->_tpl_vars['lng']['lbl_excellent']; ?>
</option>
		<option value="4"><?php echo $this->_tpl_vars['lng']['lbl_very_good']; ?>
</option>
		<option value="3"><?php echo $this->_tpl_vars['lng']['lbl_good']; ?>
</option>
		<option value="2"><?php echo $this->_tpl_vars['lng']['lbl_fair']; ?>
</option>
		<option value="1"><?php echo $this->_tpl_vars['lng']['lbl_poor']; ?>
</option>
	</select>
	</td>
	<td><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "buttons/button.tpl", 'smarty_include_vars' => array('button_title' => $this->_tpl_vars['lng']['lbl_rate_it'],'style' => 'button','href' => "javascript: document.voteform.submit();",'type' => 'input')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
</tr>
</table>
</form>

	</td>
</tr>